package com.TestDemo.Test1;

public class TestConstructSetData {

    public static void main(String[] args) {
        Construct zjz = new Construct("zjz", 888);
        System.out.println(zjz.toString());

    }


}



class Construct{
    private String name;
    private int id;

    public Construct(String name, int id) {
        this.name = name;
        this.id = id;
    }


    @Override
    public String toString() {
        return "Construct{" +
                "name='" + name + '\'' +
                ", id=" + id +
                '}';
    }
}
